You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@glimmer/env

Package Overview
Dependencies
0
Maintainers
10
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glimmer/env

Glimmer application environment variables stub


Version published
Maintainers
10
Created

Package description

What is @glimmer/env?

@glimmer/env is a utility package designed for use with Glimmer.js, a UI component library. It provides environment-specific utilities that help in determining the current environment (like development or production) and conditionally executing code based on that environment.

What are @glimmer/env's main functionalities?

isDevelopment

The `isDevelopment` function checks if the current environment is set to development. This is useful for running development-specific code.

const { isDevelopment } = require('@glimmer/env');

if (isDevelopment()) {
  console.log('This is a development environment');
}

isProduction

The `isProduction` function checks if the current environment is set to production. This is useful for running production-specific code.

const { isProduction } = require('@glimmer/env');

if (isProduction()) {
  console.log('This is a production environment');
}

isTesting

The `isTesting` function checks if the current environment is set to testing. This is useful for running testing-specific code.

const { isTesting } = require('@glimmer/env');

if (isTesting()) {
  console.log('This is a testing environment');
}

Other packages similar to @glimmer/env

Readme

Source

@glimmer/env

Contains stubs for glimmer application environment variables.

FAQs

Package last updated on 27 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc